package com.uzai.console.vo.cms.homepage;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.StringUtils;

/**
 * @author liuqi
 * @date 2021年09月01日 19:21
 */
@ApiModel("CMS首页配置返回对象")
public class CmsHomePageConfigVo {
    @ApiModelProperty("CMS首页配置")
    private String cmsHomePageConfig;

    public String getCmsHomePageConfig() {
        //默认一套CMS首页设置
        if(StringUtils.isBlank(cmsHomePageConfig)){
            cmsHomePageConfig = "{\"components\":[{\"id\":\"3\",\"name\":\"SearchInput\",\"cnName\":\"搜索框\",\"collection\":\"top\",\"noCopyAndDel\":true,\"config\":{\"searchTip\":\"请输入商品名或粘贴宝贝标题搜索\",\"keywords\":[],\"qrcodeImg\":\"http://youzai30.oss-cn-shanghai.aliyuncs.com/resource/imgs/kf.png\",\"kfSetting\":\"--\"}},{\"id\":\"4\",\"name\":\"PicWord\",\"cnName\":\"图文轮播\",\"collection\":\"default\",\"config\":{\"height\":120,\"list\":[],\"useOfficial\":true}},{\"id\":\"1\",\"name\":\"MarketNavigate\",\"cnName\":\"营销导航\",\"collection\":\"default\",\"config\":{\"list\":[],\"useOfficial\":true}},{\"id\":\"7\",\"name\":\"MostOne\",\"cnName\":\"优惠头条\",\"collection\":\"default\",\"config\":{\"list\":[],\"useOfficial\":true}},{\"id\":\"5\",\"name\":\"TbGoods\",\"cnName\":\"淘宝商品\",\"collection\":\"bottom\",\"noCopyAndDel\":true,\"config\":{\"list\":[]}}]}";
        }
        return cmsHomePageConfig;
    }

    public void setCmsHomePageConfig(String cmsHomePageConfig) {
        this.cmsHomePageConfig = cmsHomePageConfig;
    }
}
